<@realgodo.admin_html>
<script type="text/javascript" src="${base}/scripts/admin/user/index.js"></script>
	<div class="title">
		<h1>会员管理</h1>
		<span class="tTip"></span>
	</div>
	<div class="box">
		<form name="searchForm" id="searchForm" method="post" action="${base}/admin/user/">
			<div class="tx_table" style="margin-bottom:7px;">
				<div class="data">
					<h2>会员管理</h2>
					<table>
						<tbody>
							<tr style="background:#dcf7fe;">
								<td>
									登录名：
									<input class="Q" type="text" name="userForm.loginName" value="${(userForm.loginName)!}" size="26" />
									真实姓名：
									<input class="Q" type="text" name="userForm.name" value="${(userForm.name)!}" size="26" />

								</td>
							</tr>
						</tbody>
					</table>
					<div class="tx_sender">
						<input class="step" name="" type="submit" value="查 找" />
					</div>
				</div>
			</div>
		</form>
		<form id="enableForm" name="enableForm" method="post" action="${base}/admin/user/index!enable">
			<input type="hidden" value="" name="id" id="enable_hidden_id"/>
		</form>
		<form id="lockForm" name="lockForm" method="post" action="${base}/admin/user/index!lock">
			<input type="hidden" value="" name="id" id="lock_hidden_id"/>
		</form>
		<form id="manForm" name="manForm" method="post" action="${base}/admin/user/index!man">
			<input type="hidden" value="" name="id" id="man_hidden_id"/>
		</form>
		<form id="unManForm" name="unManForm" method="post" action="${base}/admin/user/index!unMan">
			<input type="hidden" value="" name="id" id="unMan_hidden_id"/>
		</form>
		<form id="memberForm" name="memberForm" method="post" action="${base}/admin/user/index!member">
			<input type="hidden" value="" name="id" id="member_hidden_id"/>
		</form>
		<form id="unMemberForm" name="unMemberForm" method="post" action="${base}/admin/user/index!unMember">
			<input type="hidden" value="" name="id" id="unMember_hidden_id"/>
		</form>
		<form id="recommendForm" name="recommendForm" method="post" action="${base}/admin/user/index!recommend">
			<input type="hidden" value="" name="id" id="recommend_hidden_id"/>
		</form>
		<form id="unRecommendForm" name="unRecommendForm" method="post" action="${base}/admin/user/index!unRecommend">
			<input type="hidden" value="" name="id" id="unRecommend_hidden_id"/>
		</form>

			<div class="tx_table" id="columns_list">
				<form name="removeForm" id="removeForm" method="post" action="">
					<div class="data">
						<div class="tx_sender l_tr" style="padding:5px 10px;">						
						</div>
						<table class="l_tc">
							<caption>会员列表</caption>
							<thead>
								<tr>
									<th><input class="C" type="checkbox" value="" onclick="checkAll(this);"/></th>
									<th>登录名</th>
									<th>真实姓名</th>
									<th>注册时间</th>
									<th>状态</th>
									<th>MEIMEI大侠</th>
									<th>MEIMEI会员</th>
									<th>首页推荐</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<#list userPage.result as user>
								<tr <#if user_index%2 != 0> class="c_odd" </#if>>
									<td><input class="C items" type="checkbox" value="${user.id}" name="ids"/></td>
									<td>
										<a class="c_modi" href="#">${(user.loginName)!}</a>
									</td>
									<td>
											${(user.name)!}
									</td>
									<td>${user.registDate?string("yyyy-MM-dd")!}</td>
									<td><#if user.enable=1>已激活</#if>
										<#if user.enable=0>未激活</#if>
									</td>
									<td><#if user.meiMeiMan=1>MEIMEI大侠</#if>
										<#if user.meiMeiMan=0>无</#if>
									</td>
									<td><#if user.meiMeiMember=1>MEIMEI会员</#if>
										<#if user.meiMeiMember=0>无</#if>
									</td>
									<td><#if user.recommend=1>MEIMEI会员</#if>
										<#if user.recommend=0>无</#if>
									</td>
									<td>

										<#if user.stauts=0><a class="c_modi" href="${base}/admin/user/index!detail?id=${user.id}" >审核</a></#if>
										<#if user.enable=1&&user.recommend=0><a class="c_modi" href="#" onClick="recommend(${user.id});">首页推荐</a></#if>
										<#if user.enable=1&&user.recommend=1><a class="c_modi" href="#" onClick="unRecommend(${user.id});">取消首页推荐</a></#if>
										<#if user.enable=1&&user.meiMeiMan=0><a class="c_modi" href="#" onClick="man(${user.id});">大侠推荐</a></#if>
										<#if user.enable=1&&user.meiMeiMan=1><a class="c_modi" href="#" onClick="unMan(${user.id});">取消大侠推荐</a></#if>
										<#if user.enable=1&&user.meiMeiMember=0><a class="c_modi" href="#" onClick="member(${user.id});">会员推荐</a></#if>
										<#if user.enable=1&&user.meiMeiMember=1><a class="c_modi" href="#" onClick="unMember(${user.id});">取消会员推荐</a></#if>
									</td>
								</tr>
							</#list>							
							</tbody>
						</table>
						
					</div>
				</form>
				<@realgodo.pagination_admin div="columns_list" />
			</div>
	</div>
</@realgodo.admin_html>